package com.dv.driverless.domain;

import java.util.Date;

import com.dv.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.dv.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 运输单位信息对象 basic_department
 *
 * @author ruoyi
 * @date 2023-04-06
 */
public class BasicDepartment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 单位代码 */
    @Excel(name = "单位代码")
    private String departmentCode;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String departmentName;

    /** 单位简介 */
    @Excel(name = "单位简介")
    private String departmentDesc;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDepartmentCode(String departmentCode)
    {
        this.departmentCode = departmentCode;
    }

    public String getDepartmentCode()
    {
        return departmentCode;
    }
    public void setDepartmentName(String departmentName)
    {
        this.departmentName = departmentName;
    }

    public String getDepartmentName()
    {
        return departmentName;
    }
    public void setDepartmentDesc(String departmentDesc)
    {
        this.departmentDesc = departmentDesc;
    }

    public String getDepartmentDesc()
    {
        return departmentDesc;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departmentCode", getDepartmentCode())
            .append("departmentName", getDepartmentName())
            .append("departmentDesc", getDepartmentDesc())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .toString();
    }
}
